package com.event.mapper;

import com.event.pojo.Post;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.event.pojo.StudySrc;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 帖子 Mapper 接口
 * </p>
 *
 * @author 孤雏
 * @since 2021-08-09
 */
@Mapper
public interface PostMapper extends BaseMapper<Post> {
    List<Post> selectPost(Post post);

    List<Post> selectPostByView(Post post);

    int updatePost(Post post);

    List<Post> selectPostByPostTitle(@Param("postTitle") String postTitle);

    List<Post> selectPostByUptime(Post post);

}
